<template>
  <div v-for="(item,index) in items" :key="index">
    <div>索引是：{{ index }} ------ 内容是：{{ item }}</div>
  </div>
</template>

<script setup>
    const items = ['HTML', 'CSS', 'JavaScript', 'Vue.js']
</script>

<style>

</style>